<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<div class="card-header"><b>课程相关</b></div>
<div class="card-content" th:if="${#lists.isEmpty(dataList)}">
    <div class="card-content-inner">
        <section class="no-data__wrap">
            <em>&nbsp;</em>
            <p>暂无相关搜索数据，小编正在整理中</p>
        </section>
    </div>
</div>
<div class="card-content" th:if="!${#lists.isEmpty(dataList)}">
    <div class="card-content-inner">
        <div class="mb5" th:if="!${#lists.isEmpty(dataList)}" th:each="course : ${dataList}">
            <section class="item-title">
                <span th:if="${course['courseTypeKey']}=='PACKAGE'" class="wm-cm-title course-id">「套餐」</span>
                <span th:if="${course['courseTypeKey']}=='VIDEO'" class="wm-cm-title course-id">「录播」</span>
                <span th:if="${course['courseTypeKey']}=='COLUMNS'" class="wm-cm-title course-id">「专栏」</span>
                <span th:if="${course['courseTypeKey']}=='LIVE'" class="wm-cm-title course-id">「直播」</span>
                <a th:if="${course['courseTypeKey']}=='LIVE'"
                   th:href="@{/mobile/course/liveInfo?courseId={courseId}(courseId=${course['id']})}"
                   class="wm-cm-title course-id" th:text="${course['courseName']}"></a>
                <a th:if="${course['courseTypeKey']}!='LIVE'"
                   th:href="@{/mobile/course/info?courseId={courseId}(courseId=${course['id']})}"
                   class="wm-cm-title course-id" th:text="${course['courseName']}"></a>
                <section class="wm-attr-wrap row">
                    <aside class="col-auto" th:if="${!#lists.isEmpty(course['teacherList'])}">
                        <span class="wm-txt-small" th:each="teacher,index : ${course['teacherList']}"
                              th:if="${index['index']}==0" th:text="${teacher['teacherName']}"></span>
                    </aside>
                    <aside class="col-auto" th:if="${#lists.isEmpty(course['teacherList'])}">
                        <span class="wm-txt-small">暂无讲师</span>
                    </aside>
                    <aside class="col-auto">
                        <em class="iconfont icon-home-1 vam fs4"></em>
                        <span class="vam fs6"
                              th:text="${course['courseProfile']['buyCount']} + ${course['initBuyNum']}"></span>
                    </aside>
                </section>
            </section>
        </div>
    </div>
</div>
<div class="card-footer" th:if="!${#lists.isEmpty(dataList)}" th:text="'共'+${#lists.size(dataList)}+'条结果'"></div>
</html>